from django.conf.urls.defaults import patterns, include, url
from django.conf import settings

urlpatterns = patterns('',
    (r'^site_media/(?P<path>.*)$', 'django.views.static.serve', {'document_root':settings.STATIC_PATH}),
    (r'^login/', 'users.views.login'),
    (r'^home/', 'users.views.home'),
    (r'^logout/', 'users.views.logout'),
    (r'^register/', 'users.views.register'),
    (r'^find_user/', 'users.views.start_game'),
    (r'^find/', 'users.views.has_match'),
    (r'^game/', 'users.views.game'),
    (r'^result/(\d+)', 'users.views.get_game_result'),
    (r'^is_user_exist/([A-Za-z]+)/', 'users.views.is_user_exist'),
    (r'^check_login/([^/]+)/([^/]+)/', 'users.views.check_login'),
    (r'^check_match/([A-Za-z]+)/', 'users.views.check'),
    (r'^check_pic/([A-Za-z]+)/(\d+)/(\d+)/(\d+)/(\d+)/', 'users.views.check_with_pic'),
    (r'^check_match_background/', 'users.views.check_background'),
    (r'^get_first_off_limit_list/', 'users.views.get_first_off_limit_list'),
    (r'^check_pass/', 'users.views.check_pass'),
    (r'^check_pass_background/', 'users.views.check_background'),
    (r'^get_partial_label/', 'users.views.get_partial_label'),
    (r'^captcha/([a-zA-Z0-9]+)/', 'users.views.captcha'),
    (r'^recover/', 'users.views.recover'),
    (r'^reset_password/(\w+)/', 'users.views.reset_password')
)